/**
 * 作者：陈文斌 on 2019/1/24.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/constant/constant.dart';
import 'package:crm/view/AppBar/custom_app_bar.dart';

const String Title = '用户反馈详情';

class FeedbackDetailPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _FeedbackDetailPageState();
  }
}

class _FeedbackDetailPageState extends State<FeedbackDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppBar(
        title: Title,
        actions: <Widget>[
          MaterialButton(
            onPressed: () {},
            child: Text(
              '更多',
              style: AppStyles.actionsTitleStyle,
            ),
            splashColor: Colors.transparent,
            highlightColor: Colors.transparent,
          ),
        ],
      ),
      body: GestureDetector(
        behavior: HitTestBehavior.translucent,
        onTap: () {
          FocusScope.of(context).requestFocus(FocusNode());
        },
        child: ListView(
          children: <Widget>[
            Container(
              padding: EdgeInsets.symmetric(horizontal: 15),
              constraints: BoxConstraints(
                minHeight: 50,
                maxHeight: 150,
              ),
              color: Colors.red,
              child: TextField(
                decoration: InputDecoration(
                  border: InputBorder.none,
                  contentPadding: EdgeInsets.zero,
                ),
                maxLines: null,
              ),
            )
          ],
        ),
      ),
    );
  }
}
